//
//  HoomViewController.m
//  PCR
//
//  Created by shumei on 16/6/2.
//  Copyright © 2016年 YM. All rights reserved.
//

#import "HoomViewController.h"
#import "AppDelegate.h"
#import "doTaskViewController.h"
#import "doTaskSecondDayViewController.h"
#import <objc/runtime.h>
@interface HoomViewController ()<UICollectionViewDelegate,UICollectionViewDataSource>
- (IBAction)doTask:(id)sender;

@end

@implementation HoomViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.navigationController.navigationBar.barTintColor = [UIColor whiteColor];
    [self setTopTitleWithTitle:@"人气符"];
  }


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (IBAction)doTask:(UIButton*)sender {
    if (sender.tag == 1002) {
        
        doTaskViewController * Vc = [doTaskViewController new];
        [self.navigationController pushViewController:Vc animated:YES];
        NSLog(@"%@",Vc);
        NSLog(@"代下单");
        
    }else if (sender.tag == 1001){
        
        doTaskSecondDayViewController * Vc = [doTaskSecondDayViewController new];
        [self.navigationController pushViewController:Vc animated:YES];
        
        NSLog(@"代加入购物车");

    }else if (sender.tag == 1003){
        
        NSLog(@"代确认收货");

    }else{
        
        NSLog(@"代确认返款");

    }
}
@end
